<%--
 *  File:   EREditHeader.jsp
 *  Desc:	EREditHeader
 *
 *  Date		         Author		      Changes
 *  2005-7-29	  sword		  Created
 *
 *  Copyright (C) 2000 - 2005 Oval Technologies, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Oval
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>
<%
  //init param
  String privilegeCode = "Z0903,10301,10307,10308";
  String strModuleName = "ERM";
  String contextPath = request.getContextPath();

	String IsExternal = "";
	String titleLabel = "";

	IsExternal = (String )session.getAttribute("IsExternal");
	if (IsExternal.equalsIgnoreCase("Y")) {
		titleLabel = "L_ExternalCompanyRelationship";
	} else {
		titleLabel = "L_InternalCompanyRelationship";
	}

	HashMap relationshipinfo = (HashMap)pageContext.getAttribute("relationshipinfo");
  if(relationshipinfo == null)
    relationshipinfo = new HashMap();
%>
<%@ include file="/inc/CommonHeader.inc" %>

<html>
<head>
<title>EREditHeader</title>
<PageFlow:CheckPageFlow pageName="ereditheader"/>
<%@ include file="/inc/CatchError.inc" %>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=contextPath%>/css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="<%=contextPath%>/css/<%= strLanguageCode %>/script.js"></script>
<script language="JavaScript" src="<%=contextPath%>/js/ScriptLib.js"></script>
</head>
<script language="JavaScript">

		function page_onload(){
			
			window.location.reload();
	
			
		}
function clicked(obj)
{
  return true;
}
</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >

<%--	form elements	--%>
<span style="display:none">
<form name="frm" method="post" action="<%=contextPath%>/Dispatcher">
  	<input type="hidden" name="pagename" value="ereditheader">
  	<input type="hidden" name="actionname">
</form>
</span>

<div id=div1>

<%--	header title	--%>

<table width="100%" cellspacing="0" cellpadding="0">

  <tr>
    <td class="summary_top"></td>
  </tr>
  <tr>
    <td class="td_center"><span class="title-big-b-center"><%= label.getLabelName(titleLabel)%></span></td>
  </tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td class="summary_top" ></td>
  </tr>
  
<%--	header descriptions	--%>

	<tr> 
    <td class="td_right"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td><span class="b"><%= label.getLabelName("L_SourceCompanyName") + label.getLabelName("L_Colon") %><custom:write name="relationshipinfo" property="sourceorgname" /></span></td>
        </tr>
        <tr>
          <td><span class="b"><%= label.getLabelName("L_TargetCompanyName") + label.getLabelName("L_Colon") %><custom:write name="relationshipinfo" property="targetorgname" /></span></td>
        </tr>
        <tr>
          <td><span class="b"><%= label.getLabelName("L_RelationType") + label.getLabelName("L_Colon") %><custom:write name="relationshipinfo" property="globalpcname" /></span></td>
        </tr>
      </table>
    </td>
  </tr>

<%--	all tabs	--%>
  <%
 		Vector vec = new Vector();
 		HashMap tabHash = new HashMap();
 		
 		tabHash.put("id","A01");
 		tabHash.put("label","L_BasicInfo");
 		vec.add(new HashMap(tabHash));
 	%>
  <tr>
    <td>    	
     	<custom:tab  vecAttr="<%=vec%>" defaultID="A01" privilegeCode="10301" />
    </td>
  </tr> 
  
</table>
</div>

</body>
</html>
